<td width="727"><table width="727" border="0" cellspacing="0" cellpadding="0">
                                <tr> 
                                  <td width="727" height="47" valign="top" background="img/bar_blue.jpg"><table width="727" border="0" cellspacing="0" cellpadding="0">
                                      <tr> 
                                        <td width="10" height="47">&nbsp;</td>
                                        <td width="23" height="47"><img src="img/bar_flblue.jpg" width="23" height="23"></td>
                                        <td width="10" height="47">&nbsp;</td>
                                        <td height="47" class="tahoma12W"><strong> 
                                          <?php echo $lang['CONTENT_TITLE_UPDATE_USER']; ?></strong></td>
                                      </tr>
                                    </table></td>
                                </tr>
                                <tr> 
                                  <td width="727" height="6" valign="top"><img src="img/spec_blank.gif" width="10" height="7"></td>
                                </tr>
                                <tr> 
                                  <td width="727" height="878" valign="top" bgcolor="#99CC33"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                      <tr> 
                                        <td height="601" valign="top" bgcolor="F1F3EB"><table width="100%" height="878" border="0" cellpadding="0" cellspacing="0">
                                            <tr> 
                                              <td height="763" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                  <tr> 
                                                    <td width="10" height="10"></td>
                                                    <td height="10"></td>
                                                    <td width="10" height="10"></td>
                                                  </tr>
                                                  <tr> 
                                                    <td width="10">&nbsp;</td>
                                                    <td align="left" valign="top" class="arial12G66">
															<?php
																
																$QUser = "SELECT * from user where username = '$_SESSION[username]'";
																	$QUcheck= $db->sql_total($QUser);
																	$QUresult = $db->sql_list($QUser);
																
																$mailing_address_id = $QUresult['mailing_address_id'];
																$shipping_address_id = $QUresult['shipping_address_id'];
																$verify_ahli_db = $QUresult['verify_ahli'];
																	
																if(isset($_POST['submit'])){
																	
																	if(empty($_POST['notel'])){
																		$errors[] = $lang['ERROR_PHONE'];
																	}
																	if(empty($_POST['mail_address'])){
																		$errors[] = $lang['ERROR_ADDRESS'];
																	}
																	if(empty($_POST['mail_poskod'])){
																		$errors[] = $lang['ERROR_POSKOD'];
																	}
																	if(empty($_POST['mail_city'])){
																		$errors[] = $lang['ERROR_CITY'];
																	}
																	if(empty($_POST['mail_state'])){
																		$errors[] = $lang['ERROR_STATE'];
																	}
																	if(empty($_POST['mail_country'])){
																		$errors[] = $lang['ERROR_COUNTRY'];
																	}
																	if(is_array($errors)){
																		echo '
																		<table width=500 align=center border=0 cellspacing=0 cellpadding=0>
																		<tr>
																			<td>
																		<div style="margin-bottom:10px;font-family: tahoma; font-size: 11px;">';
																		echo '<p style="padding:0px; margin:0px; color:red;"><b>'.$lang[CONTENT_ERROR_OCCUR].'</b></p>';
																		while (list($key,$value) = each($errors))
																		{
																			echo '<span style="padding:10px;color:red;">'.$value.'</span><br />';
																		}
																		echo '</div> </td></tr></table>';
																	}else{
																		
																		$name = mysql_real_escape_string($_POST['name']); 
																		$phoneNo = mysql_real_escape_string($_POST['notel']); 
																		$no_ahli = mysql_real_escape_string($_POST['no_ahli']); 
																		$mail_address = mysql_real_escape_string($_POST['mail_address']); 
																		$mail_poskod = mysql_real_escape_string($_POST['mail_poskod']); 
																		$mail_city= mysql_real_escape_string($_POST['mail_city']); 
																		$mail_state = mysql_real_escape_string($_POST['mail_state']); 
																		$mail_country = mysql_real_escape_string($_POST['mail_country']); 
																		$ship_address = mysql_real_escape_string($_POST['ship_address']); 
																		$ship_poskod = mysql_real_escape_string($_POST['ship_poskod']); 
																		$ship_city= mysql_real_escape_string($_POST['ship_city']); 
																		$ship_state = mysql_real_escape_string($_POST['ship_state']); 
																		$ship_country = mysql_real_escape_string($_POST['ship_country']);  
																		
																		$verify_ahli = "";
																		if($verify_ahli_db == 'verified'){
																			$verify_ahli = 'verified';
																		}
																		if($no_ahli != "" && $verify_ahli_db != 'verified'){
																			$verify_ahli = "Wait Approval";
																		}
																		
																		if($mailing_address_id != "" && $mailing_address_id > 0){
																			$updateMailAddress= "UPDATE address SET nama='$name', notel='$phoneNo', address ='$mail_address', poskod='$mail_poskod', city='$mail_city', 
																						state_id='$mail_state', country_id='$mail_country', modified_date=NOW() where id='$mailing_address_id'";
																			$resultMailAddress = $db->sql_query($updateMailAddress);
																		}else{
																			$createMailAddress= "INSERT INTO address(nama,notel,address, poskod, city, state_id, country_id,created_date) VALUES 
																			('$name','$phoneNo','$mail_address','$mail_poskod', '$mail_city','$mail_state', '$mail_country', NOW())";
																			$resultMailAddress = $db->sql_query($createMailAddress);
																			$mailing_address_id = mysql_insert_id();
																		}
																		
																		if($shipping_address_id != "" && $shipping_address_id > 0){
																			$updateShipAddress= "UPDATE address SET nama='$name', notel='$phoneNo',address ='$ship_address', poskod='$ship_poskod', city='$ship_city', 
																						state_id='$ship_state', country_id='$ship_country', modified_date=NOW() where id='$shipping_address_id'";
																			$resultShipAddress = $db->sql_query($updateShipAddress);
																		}else{
																			$createShipAddress= "INSERT INTO address(nama,notel,address, poskod, city, state_id, country_id,created_date) VALUES 
																			('$name','$phoneNo','$ship_address','$ship_poskod', '$ship_city','$ship_state', '$ship_country', NOW())";
																			$resultShipAddress = $db->sql_query($createShipAddress);
																			$shipping_address_id = mysql_insert_id();
																		}
																		if($resultMailAddress && $resultShipAddress ){
																			$updateUser= "UPDATE user SET name ='$name', notel='$phoneNo', mailing_address_id='$mailing_address_id', 
																						shipping_address_id='$shipping_address_id', no_ahli ='$no_ahli', verify_ahli='$verify_ahli', modified_date=NOW() where username='$_SESSION[username]'";
																			$result = $db->sql_query($updateUser);
																			
																			if ($result){	
																				$_SESSION['name']   = $name;
																				$_SESSION['notel']   = $phoneNo;
																				echo'
																					<table width=500 align=center border=0 cellspacing=0 cellpadding=0>
																						<tr>
																							<td><div style="font-weight:bold; font-size:14px; font-family:tahoma;">'.$lang['CONTENT_SUCCESS_UPDATE_PROFILE'].' </div>
																							</td>
																						</tr>
																						<tr>
																							<td height=15>
																							</td>
																						</tr>
																					</table>
																					
																					';
																				$QUserTemp = "SELECT * from user where username = '$_SESSION[username]'";
																				$QUcheckTemp= $db->sql_total($QUserTemp);
																				$QUresultTemp = $db->sql_list($QUserTemp);	
																				if($QUcheckTemp <> 0){
																					if($QUresultTemp['status']!='verified'){
																						$username = $_SESSION['username'];
																						$email = $QUresultTemp['email'];
																						$activatedTemp=strtoupper(Random2(15,1));
																						$activatedkey = md5($username.$activatedTemp).strtotime ("+0 day");
																						$upUser= "UPDATE user SET activatedkey ='$activatedkey' where username='$_SESSION[username]'";
																						$upResult = $db->sql_query($upUser);
																						
																						$domainFullWebUrl = domainFullWebUrl();
																						
																						include ('phpmailer/class.phpmailer.php');
																						include ('phpmailer/class.smtp.php');
																						include ('phpmailer/phpmailer.lang-en.php');

																						date_default_timezone_set('Asia/Singapore');
																						$mail = new PHPMailer(true); // the true param means it will throw exceptions on errors, which we need to catch
																						$mail->IsSMTP(); // telling the class to use SMTP
																						try{
																							$mail->SMTPDebug  = 0;                     // enables SMTP debug information (for testing)
																							$mail->SMTPAuth   = true;                  // enable SMTP authentication
																							//$mail->SMTPSecure = "ssl";                 // sets the prefix to the servier
																							//$mail->Host       = "smtp.gmail.com";      // sets GMAIL as the SMTP server
																							//$mail->Port       = 465;                   // set the SMTP port for the GMAIL server
																							//$mail->Username   = "kppptnb@gmail.com";  // GMAIL username
																							//$mail->Password   = "asdfg123";            // GMAIL password
																							
																							$mail->Host       = "mail.powergoat2u.com.my";      // sets SMTP server
																							$mail->Port       = 25;                   // set the SMTP port f
																							$mail->Username   = "powergoa";  // username
																							$mail->Password   = "8RU5EmGs";            //  password
																			  
																							$mail->SetFrom(INFOEMAIL, EMAILNAME);
																							$mail->AddAddress("$email", "$username");

																							$mail->Subject    = $lang['CONTENT_EMAIL_SUBJECT'];
																							
																							$mail->AltBody    = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test
																							$mail->Body ="
																									<html>
																									<body>
																									<table width=500 cellpadding=3>
																										<tr>
																											<td>
																												".$lang['CONTENT_EMAIL_DEAR']." ".$username.",
																											</td>
																										</tr>
																										<tr>
																											<td>
																												<br>
																												".$lang['CONTENT_EMAIL_KNWLEDGE']."
																											</td>
																										</tr>
																										<tr>
																											<td>
																												<br>
																												".$lang['CONTENT_EMAIL_VERIFY_INFO']."
																											</td>
																										</tr>
																										<tr>
																											<td>
																												<br>
																												<a style='font-size:13px; font-weight:bold;' href='".$domainFullWebUrl."verifyemail.php?active=".$activatedkey."'>".$lang['CONTENT_EMAIL_VERIFY']."<a>
																											</td>
																										</tr>
																										<tr>
																											<td>
																												<br>
																												".$lang['CONTENT_EMAIL_PROBLEMS']."
																												<a style='font-size:11px; font-weight:bold;' href='".$domainFullWebUrl."contactus.php'>".$lang['CONTENT_EMAIL_CONTACTUS']."<a>
																											</td>
																										</tr>
																									<table>
																									</body>
																									</html>";
																								//$mail->AddAttachment("images/phpmailer.gif");             // attachment
																							$mail->Send();
																							echo'
																							<table width=500 align=center border=0 cellspacing=0 cellpadding=0>
																								<tr>
																									<td><div style="font-weight:bold;font-size:11px; font-family:tahoma;">
																											'.$lang['CONTENT_SENDMAIL_INFO_VERIFY'].'
																									</td>
																								</tr>
																							</table>
																							
																							';
																							$mail->SmtpClose();
																						} catch (phpmailerException $e) {
																							echo"
																							<table width=500 align=center border=0 cellspacing=0 cellpadding=0>
																								<tr><td><div style='font-weight:bold; color:red; font-size:11px; font-family:tahoma;'>
																										Error sent email! <br/>
																										".$e->errorMessage()." </div>
																									</td></tr>
																								<tr><td height=15></td></tr>
																							</table>";
																							$mail->SmtpClose();
																						} catch (Exception $e) {
																							echo"
																							<table width=500 align=center border=0 cellspacing=0 cellpadding=0>
																								<tr><td><div style='font-weight:bold; color:red; font-size:11px; font-family:tahoma;'>
																								    Error sent email! <br/>
																										".$e->errorMessage()." </div>
																									</td></tr>
																								<tr><td height=15></td></tr>
																							</table>";
																							$mail->SmtpClose();
																						}
																					
																					}
																				
																				}
																				
																			}
																		}
																	}
																		
																}	
															
															$QUser = "SELECT * from user where username = '$_SESSION[username]'";
																	$QUcheck= $db->sql_total($QUser);
																	$QUresult = $db->sql_list($QUser);
																
																$mailing_address_id = $QUresult['mailing_address_id'];
																$shipping_address_id = $QUresult['shipping_address_id'];
															?>
															
															<form action="" method="POST">	
																<table width="700" align="center" border="0" cellspacing="0" cellpadding="0">
																	<tr>
																		<td width="20%" class="tahoma11G"><?php echo $lang['FORM_USERNAME']; ?></td>
																		<td width="1%"> : </td>
																		<td class="tahoma11G"><input type="text" name="username"  readonly
																			value="<?php echo $QUresult['username']; ?>" size="40" ></td>
																	</tr>
																	<tr>
																		<td colspan="3" style="height:5px"></td>
																	</tr>
																	<tr>
																		<td width="30%" class="tahoma11G"><?php echo $lang['FORM_EMAIL']; ?></td>
																		<td width="5%"> : </td>
																		<td class="tahoma11G"><input type="text" name="email" readonly
																			value="<?php echo $QUresult['email']; ?>" size="40" 
																			style="float: left; display:inline; "> 
																			<?php if($QUresult['status']=='verified'){  ?>
																				<img  style=" float: right;padding-right: 128px;" src="img/verified.jpg" width="48" height="20" />
																			<?php }else{ ?>
																				<span title="<?php echo $lang['CONTENT_NOT_VERIFY_EMAIL_DESC']; ?>">
																					<?php echo $lang['CONTENT_NOT_VERIFY_EMAIL']; ?> </span>
																			<?php } ?>
																		</td>
																	</tr>
																	<tr>
																		<td colspan="3" style="height:5px"></td>
																	</tr>
																	<tr>
																		<td width="30%" class="tahoma11G"><?php echo $lang['FORM_NAME']; ?></td>
																		<td width="5%"> : </td>
																		<td class="tahoma11G"><input type="text" name="name" 
																			value="<?php echo $QUresult['name']; ?>" size="40" ></td>
																	</tr>
																	<tr>
																		<td colspan="3" style="height:5px"></td>
																	</tr>
																	<tr>
																		<td colspan="3" style="height:5px"></td>
																	</tr>
																	<tr>
																		<td width="30%" class="tahoma11G"><?php echo $lang['FORM_NO_AHLI'] ?></td>
																		<td width="5%"> : </td>
																		<td class="tahoma11G">
																			<input type="text" name="no_ahli" title="<?php echo $lang['CONTENT_DESC_KEAHLIAN'] ?>"
																				style="float: left; display:inline; "
																				value="<?php echo $QUresult['no_ahli']; ?>" size="40" <?php if($QUresult['verify_ahli']=='verified') echo 'readonly'; ?>  >
																			<?php if($QUresult['verify_ahli']=='verified'){  ?>
																				<span  title="<?php echo $lang['CONTENT_DESC_KEAHLIAN'] ?>">
																					<img  style=" float: right;padding-right: 128px;" src="img/verified.jpg" width="48" height="20" />
																				</span>
																			<?php }else if($QUresult['verify_ahli']!=''){ ?>
																				<span title="<?php echo $lang['CONTENT_NOT_VERIFY_NOAHLI_DESC']; ?>">
																					<?php echo $lang['CONTENT_NOT_VERIFY_NOAHLI']; ?> </span>
																			<?php } ?>	
																		</td>
																	</tr>
																	<tr>
																		<td colspan="3" style="height:5px"></td>
																	</tr>
																	<tr>
																		<td width="30%" class="tahoma11G"><?php echo $lang['FORM_PHONE']; ?></td>
																		<td width="5%"> : </td>
																		<td class="tahoma11G"><input type="text" name="notel" 
																			value="<?php echo $QUresult['notel']; ?>" size="40" ></td>
																	</tr>
																	<tr>
																		<td colspan="3" style="height:5px"></td>
																	</tr>
																	<tr>
																		<td colspan="3">
																			<fieldset>
																				<legend class="tahoma11G"><?php echo $lang['FORM_MAILING_ADDRESS']; ?></legend> 
																				<?php 
																					$QMailAddress = "SELECT * from address where id = '$mailing_address_id'";
																					$MailAddressResult = $db->sql_list($QMailAddress);
																				?>
																				<table width="100%" align="center" border="0" cellspacing="0" cellpadding="0">
																					<tr>
																						<td width="30%" class="tahoma11G"><?php echo $lang['FORM_ADDRESS']; ?></td>
																						<td width="5%"> : </td>
																						<td class="tahoma11G" >
																						
																							<textarea style="overflow:hidden; width:264px;"
																								rows="5"  name="mail_address" id="mail_address" ><?php echo $MailAddressResult['address']; ?></textarea>
																						</td>
																					</tr>
																					<tr>
																						<td colspan="3" style="height:5px"></td>
																					</tr>
																					<tr>
																						<td width="30%" class="tahoma11G"><?php echo $lang['FORM_POSKOD']; ?></td>
																						<td width="5%"> : </td>
																						<td class="tahoma11G"><input type="text" name="mail_poskod" 
																							value="<?php echo $MailAddressResult['poskod']; ?>" size="40" ></td>
																					</tr>
																					<tr>
																						<td colspan="3" style="height:5px"></td>
																					</tr>
																					<tr>
																						<td width="30%" class="tahoma11G"><?php echo $lang['FORM_CITY']; ?></td>
																						<td width="5%"> : </td>
																						<td class="tahoma11G"><input type="text" name="mail_city" 
																							value="<?php echo $MailAddressResult['city']; ?>" size="40" ></td>
																					</tr>
																					<tr>
																						<td colspan="3" style="height:5px"></td>
																					</tr>
																					<tr>
																						<td width="30%" class="tahoma11G"><?php echo $lang['FORM_STATE']; ?></td>
																						<td width="5%"> : </td>
																						<td class="tahoma11G">
																							<select name="mail_state"  size="1" style="width:276px;">
																								 <option value='' ><?php echo $lang['FORM_PLEASE_CHOOSE']; ?></option>"
																								<?php $Qstate= "select * from states  order by state asc";
																									  $stateResult = $db->sql_fetch($Qstate);
																									  
																									  foreach($stateResult as $c){
																											if($MailAddressResult['state_id'] > 0){
																												if($MailAddressResult['state_id'] ==  $c['id']){
																													echo" <option value='". $c[id]."' selected>". $c[state]."</option>";
																												}else{
																													echo" <option value='". $c[id]."'>". $c[state]."</option>";
																												}
																											}else{
																												echo" <option value='". $c[id]."'>". $c[state]."</option>";
																											}
																									  }
																									?>
																							</select>
																						</td>
																					</tr>
																					<tr>
																						<td colspan="3" style="height:5px"></td>
																					</tr>
																					<tr>
																						<td width="30%" class="tahoma11G"><?php echo $lang['FORM_COUNTRY']; ?></td>
																						<td width="5%"> : </td>
																						<td class="tahoma11G" >
																							<select name="mail_country"  size="1" style="width:276px;">
																								<?php $Qcountry= "select * from countries where country_name = 'Malaysia' order by country_name asc";
																									  $countryResult = $db->sql_fetch($Qcountry);
																									  
																									  foreach($countryResult as $c){
																											if($MailAddressResult['country_id'] > 0){
																												if($MailAddressResult['country_id'] ==  $c['id']){
																													echo" <option value='". $c[id]."' selected>". $c[country_name]."</option>";
																												}else{
																													echo" <option value='". $c[id]."'>". $c[country_name]."</option>";
																												}
																											}else if($c['country_code'] == 'MY'){
																												echo" <option value='". $c[id]."' selected>". $c[country_name]."</option>";
																											}else{
																												echo" <option value='". $c[id]."'>". $c[country_name]."</option>";
																											}
																											
																									  }
																									?>
																							</select>
																						</td>
																					</tr>
																					<tr>
																						<td colspan="3" style="height:5px"></td>
																					</tr>
																				</table>
																			</fieldset>
																		</td>
																	</tr>
																	<tr>
																		<td colspan="3" style="height:5px"></td>
																	</tr>
																	<tr>
																		<td colspan="3">
																			<fieldset>
																				<legend class="tahoma11G"><?php echo $lang['FORM_SHIPPING_ADDRESS']; ?></legend> 
																				<?php 
																					$QShipAddress = "SELECT * from address where id = '$shipping_address_id'";
																					$ShipAddressResult = $db->sql_list($QShipAddress);
																				?>
																				<table width="100%" align="center" border="0" cellspacing="0" cellpadding="0">
																					<tr>
																						<td width="30%" class="tahoma11G"><?php echo $lang['FORM_ADDRESS']; ?></td>
																						<td width="5%"> : </td>
																						<td class="tahoma11G" >
																						
																							<textarea style="overflow:hidden; width:264px;"
																								rows="5"  name="ship_address" id="ship_address" ><?php echo $ShipAddressResult['address']; ?></textarea>
																						</td>
																					</tr>
																					<tr>
																						<td colspan="3" style="height:5px"></td>
																					</tr>
																					<tr>
																						<td width="30%" class="tahoma11G"><?php echo $lang['FORM_POSKOD']; ?></td>
																						<td width="5%"> : </td>
																						<td class="tahoma11G"><input type="text" name="ship_poskod" 
																							value="<?php echo $ShipAddressResult['poskod']; ?>" size="40" ></td>
																					</tr>
																					<tr>
																						<td colspan="3" style="height:5px"></td>
																					</tr>
																					<tr>
																						<td width="30%" class="tahoma11G"><?php echo $lang['FORM_CITY']; ?></td>
																						<td width="5%"> : </td>
																						<td class="tahoma11G"><input type="text" name="ship_city" 
																							value="<?php echo $ShipAddressResult['city']; ?>" size="40" ></td>
																					</tr>
																					<tr>
																						<td colspan="3" style="height:5px"></td>
																					</tr>
																					<tr>
																						<td width="30%" class="tahoma11G"><?php echo $lang['FORM_STATE']; ?></td>
																						<td width="5%"> : </td>
																						<td class="tahoma11G">
																							<select name="ship_state"  size="1" style="width:276px;">
																								<?php $Qstate2= "select * from states  order by state asc";
																									  $stateResult2 = $db->sql_fetch($Qstate2);
																									  
																									  foreach($stateResult2 as $c){
																											if($ShipAddressResult['state_id'] > 0){
																												if($ShipAddressResult['state_id'] ==  $c['id']){
																													echo" <option value='". $c[id]."' selected>". $c[state]."</option>";
																												}else{
																													echo" <option value='". $c[id]."'>". $c[state]."</option>";
																												}
																											}else{
																												echo" <option value='". $c[id]."'>". $c[state]."</option>";
																											}
																									  }
																									?>
																							</select>
																						</td>
																					</tr>
																					<tr>
																						<td colspan="3" style="height:5px"></td>
																					</tr>
																					<tr>
																						<td width="30%" class="tahoma11G"><?php echo $lang['FORM_COUNTRY']; ?></td>
																						<td width="5%"> : </td>
																						<td class="tahoma11G" >
																							<select name="ship_country"  size="1" style="width:276px;">
																								<?php $Qcountry2= "select * from countries where country_name = 'Malaysia' order by country_name asc";
																									  $countryResult2 = $db->sql_fetch($Qcountry2);
																									  
																									  foreach($countryResult2 as $c){
																											if($ShipAddressResult['country_id'] > 0){
																												if($ShipAddressResult['country_id'] ==  $c['id']){
																													echo" <option value='". $c[id]."' selected>". $c[country_name]."</option>";
																												}else{
																													echo" <option value='". $c[id]."'>". $c[country_name]."</option>";
																												}
																											}else if($c['country_code'] == 'MY'){
																												echo" <option value='". $c[id]."' selected>". $c[country_name]."</option>";
																											}else{
																												echo" <option value='". $c[id]."'>". $c[country_name]."</option>";
																											}
																											
																									  }
																									?>
																							</select>
																						</td>
																					</tr>
																					<tr>
																						<td colspan="3" style="height:5px"></td>
																					</tr>
																				</table>
																			</fieldset>
																		</td>
																	</tr>
																	<tr>
																		<td colspan="3" style="height:5px"></td>
																	</tr>
																	<tr>
																		<td colspan="3" class="tahoma11G">
																			<button name="submit" type="submit" style="border: 0; background: transparent;float:right; margin-right:50px;	cursor:pointer;">
																			    <img src="img/btn_submit.jpg" width="53" height="22"  alt="submit" />
																			</button>
																		</td>
																	</tr>
																	<tr>
																		<td colspan="3" style="height:5px"></td>
																	</tr>
																	<tr>
																		<td colspan="3" style="height:5px"></td>
																	</tr>
																	<tr>
																		<td colspan="3" style="height:5px;font-size:14px;font-weight:bold;" 
																			class="tahoma11G" >
																				Nota : </td>
																	</tr>
																	<tr>
																		<td colspan="3" class="tahoma11G" style="height:5px;font-size:11px;font-weight:bold;">
																			<?php echo $lang['CONTENT_NOTE_KEAHLIAN'] ?></td>
																	</tr>
																</table>
															</form>
															<script  type="text/javascript">
																function trim(str) {
																	return str.replace(/^\s+|\s+$/g, '');
																}
																function clearFieldFirstTime(element) {
																 alert(element.value);
																  if (element.counter==undefined) {
																	element.counter = 1;
																  }

																  else {
																	element.counter++;
																  }

																  if (element.counter == 1) {
																	element.value = '';
																  }
																}
																
																$(document).ready(function(){
																	//alert('hiii');
																	var text = $('#fulladdress').val();
																	

																	//alert(text);
																	$('#fulladdress').val($.trim(text));
																});
															</script>
															
                                                    </td>
                                                    <td width="10">&nbsp;</td>
                                                  </tr>
                                                  <tr> 
												  
                                                    <td width="10" height="10"></td>
                                                    <td height="10"></td>
                                                    <td width="10" height="10"></td>
                                                  </tr>
                                                </table></td>
												
                                            </tr>
                                            <tr> 
                                              <td height="115" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                  <tr valign="top"> 
                                                    <td width="115" height="115"><img src="img/spec_ornamentLeft.jpg" width="115" height="115"></td>
                                                    <td height="115">&nbsp;</td>
                                                    <td width="115" height="115"><img src="img/spec_ornamentRight.jpg" width="115" height="115"></td>
                                                  </tr>
                                                </table></td>
												
                                            </tr>
                                          </table></td>
                                      </tr>
                                    </table></td>
                                </tr>
                              </table>